/*
 * ****************************************************************************
 * Copyright: 2020-2030, YZChain Tech. Co., Ltd.
 * File name:
 * Description:
 * Author: Dc luo
 * Version: v1.0
 * Date: $DATE
 * History:
 * ***************************************************************************
 */

package com.srp.blockchain.bcos.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "链信息DTO")
public class ContractInfoDTO {
    @ApiModelProperty(value = "合约名称")
    private String name;

    @ApiModelProperty(value = "合约地址")
    private String address;

    @ApiModelProperty(value = "部署时间")
    private Date time;

    @ApiModelProperty(value = "运行状态")
    private String status;

    @ApiModelProperty(value = "部署用户地址")
    private String deployer;

    public ContractInfoDTO(String name, String address, Date time,
                           String status, String deployer) {
        this.name = name;
        this.address = address;
        this.time = time;
        this.status = status;
        this.deployer = deployer;
    }
}

